﻿<!--
    This file is part of "Information Connections Engine".

    "Information Connections Engine" is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    "Information Connections Engine" is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with "Information Connections Engine".  If not, see http://www.gnu.org/license.
-->
<UserControl x:Class="ICE.view.ObjectFilterListItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="46" d:DesignWidth="199" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" >
	<UserControl.Resources>
		<Style x:Key="CheckBoxShowHide" TargetType="CheckBox">
			<Setter Property="Background" Value="#FF448DCA"/>
			<Setter Property="Foreground" Value="#FF000000"/>
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="VerticalContentAlignment" Value="Top"/>
			<Setter Property="Padding" Value="4,1,0,0"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="BorderBrush">
				<Setter.Value>
					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
						<GradientStop Color="#FFA3AEB9" Offset="0"/>
						<GradientStop Color="#FF8399A9" Offset="0.375"/>
						<GradientStop Color="#FF718597" Offset="0.375"/>
						<GradientStop Color="#FF617584" Offset="1"/>
					</LinearGradientBrush>
				</Setter.Value>
			</Setter>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="CheckBox">
						<Grid>
							<vsm:VisualStateManager.VisualStateGroups>
								<vsm:VisualStateGroup x:Name="CommonStates">
									<vsm:VisualState x:Name="Normal"/>
									<vsm:VisualState x:Name="MouseOver">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddleBackground" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Pressed">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddleBackground" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#C6FFFFFF"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#EAFFFFFF"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#F4FFFFFF"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#FF6DBDD1"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#FF6DBDD1"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#FF6DBDD1"/>
											</ColorAnimationUsingKeyFrames>
											<ColorAnimationUsingKeyFrames Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
												<SplineColorKeyFrame KeyTime="0" Value="#FF6DBDD1"/>
											</ColorAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Disabled">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="0" Value="0.55"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="CheckStates">
									<vsm:VisualState x:Name="Checked">
										<Storyboard/>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Unchecked">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Indeterminate">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="IndeterminateIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)">
												<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
								</vsm:VisualStateGroup>
								<vsm:VisualStateGroup x:Name="FocusStates">
									<vsm:VisualState x:Name="Focused">
										<Storyboard>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity">
												<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</vsm:VisualState>
									<vsm:VisualState x:Name="Unfocused"/>
								</vsm:VisualStateGroup>
							</vsm:VisualStateManager.VisualStateGroups>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="16"/>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
							<Grid HorizontalAlignment="Left" VerticalAlignment="Top">
								<Rectangle Height="14" Margin="1" x:Name="Background" Width="14" Fill="#FFFFFFFF" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" RadiusX="1" RadiusY="1"/>
								<Rectangle Height="14" Margin="1" x:Name="BackgroundOverlay" Width="14" Opacity="0" Fill="#FFC4DBEE" Stroke="#00000000" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
								<Rectangle Height="10" x:Name="BoxMiddleBackground" Width="10" Fill="{TemplateBinding Background}" Stroke="#00000000" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
								<Rectangle Height="10" x:Name="BoxMiddle" Width="10" StrokeThickness="1" RadiusX="1" RadiusY="1">
									<Rectangle.Stroke>
										<LinearGradientBrush EndPoint=".5,1" StartPoint=".5,0">
											<GradientStop Color="#FFFFFFFF" Offset="1"/>
											<GradientStop Color="#FFFFFFFF" Offset="0"/>
											<GradientStop Color="#FFFFFFFF" Offset="0.375"/>
											<GradientStop Color="#FFFFFFFF" Offset="0.375"/>
										</LinearGradientBrush>
									</Rectangle.Stroke>
									<Rectangle.Fill>
										<LinearGradientBrush EndPoint="0.64,0.88" StartPoint="0.62,0.15">
											<GradientStop Color="#FFFFFFFF" Offset="0.013"/>
											<GradientStop Color="#F9FFFFFF" Offset="0.375"/>
											<GradientStop Color="#EAFFFFFF" Offset="0.603"/>
											<GradientStop Color="#D8FFFFFF" Offset="1"/>
										</LinearGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<Rectangle Height="10" x:Name="BoxMiddleLine" Width="10" Opacity=".2" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" RadiusX="1" RadiusY="1"/>
								<Rectangle Height="2" x:Name="IndeterminateIcon" Width="6" Opacity="0" Fill="#FF333333"/>
								<Rectangle Height="14" x:Name="DisabledVisualElement" Width="14" Opacity="0" Fill="#FFFFFFFF" RadiusX="1" RadiusY="1"/>
								<Rectangle Height="16" x:Name="ContentFocusVisualElement" Width="16" IsHitTestVisible="false" Opacity="0" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2"/>
								<Path Fill="#FF000000" Stretch="Fill" Stroke="#FF000000" StrokeThickness="0" Data="M184.80376,8.5084476 L188.66557,10.930232 C201.85954,20.131346 211.43779,34.436913 214.74136,51.101807 C215.56725,55.268032 216.00098,59.581738 216.00098,64 C216.00098,81.672974 209.06142,97.673019 197.84149,109.25476 C195.03653,112.15021 191.96404,114.76949 188.66559,117.06976 C187.01636,118.21989 185.31064,119.29026 183.55363,120.27551 L183.31915,120.39211 L191.14774,119.25896 C227.29541,112.77206 266.84717,95.473549 308.05682,60.877228 L306.45135,60.877228 L299.38895,55.73278 C296.82672,53.920856 294.27136,52.167877 291.72339,50.472427 C271.33945,36.908749 251.42435,27.026405 232.19678,20.101252 C222.58296,16.638678 213.14098,13.915384 203.89813,11.840858 C199.27673,10.803593 194.70511,9.9285183 190.18668,9.204319 z M154.00049,8.0313625 C183.80659,8.0313625 207.96854,33.08955 207.96854,63.999992 C207.96854,94.910202 183.80685,119.96863 154.00049,119.96863 C124.19437,119.96863 100.0324,94.91024 100.03245,63.999992 C100.03244,60.136177 100.40998,56.363811 101.12888,52.720402 C101.48833,50.898693 101.93312,49.109226 102.45873,47.356682 L102.8989,46.109451 L154.00002,67.011803 C154.00002,67.011803 137.76361,38.541306 127.61575,20.747091 L125.28955,16.668119 L128.27608,14.786498 C134.39362,11.340049 141.22554,9.0846338 148.48256,8.320322 C150.29681,8.1292458 152.13762,8.0313625 154.00049,8.0313625 z M151.04913,6.4546599 C146.88058,6.5338688 142.77545,6.7300072 138.73718,7.0317559 L134.87846,7.4240031 L131.4304,8.729537 C129.69612,9.4883757 128.00494,10.332021 126.36176,11.255445 L123.30009,13.179608 L122.8186,12.335325 L121.31081,9.6913977 L122.57232,8.9002934 L115.33694,10.019066 C55.220638,20.882044 13.96288,52.988327 5.5366898,59.988869 C4.4834099,60.863949 3.9431229,61.346752 3.9431229,61.346745 L5.3869247,61.346745 L6.4975586,62.397587 C14.923937,70.235886 56.181511,106.18386 116.29774,118.34677 L123.30663,119.5602 L119.33528,117.06973 C106.1416,107.86868 96.563217,93.563156 93.259605,76.89814 C92.433716,72.731934 91.999985,68.418251 91.999985,64 C91.999985,59.58173 92.433716,55.268021 93.259613,51.101772 C93.672562,49.018654 94.183556,46.972393 94.787399,44.968365 L95.461479,43.067253 L99.180023,44.58828 L98.62307,46.162468 C97.493614,49.919033 96.711494,53.833939 96.315575,57.86694 C95.919662,61.899933 95.919655,66.10006 96.315575,70.133049 C97.899231,86.265129 105.66205,100.50729 117.11703,110.28681 C122.84453,115.17664 129.49503,118.9507 136.75766,121.28754 L137.21338,121.40876 L139.69812,121.69157 C147.77472,122.36729 156.11867,122.57001 164.7027,122.19835 L169.08142,121.86258 L171.24315,121.28757 C185.76865,116.61385 197.84534,106.19102 204.98639,92.592155 C208.55692,85.792686 210.89352,78.199135 211.68539,70.13308 C212.0813,66.100067 212.0813,61.899937 211.68539,57.866932 C210.10172,41.734833 202.33885,27.49271 190.88379,17.713135 C188.02005,15.268255 184.92555,13.102291 181.63916,11.255436 C179.99597,10.332013 178.30479,9.488369 176.57051,8.7295275 L172.46976,7.1768713 L163.7417,6.5791225 C159.44968,6.4131632 155.2177,6.3754468 151.04913,6.4546599 z M154.00049,0 C158.28072,2.1476335E-06 162.45967,0.44771814 166.49576,1.3002591 C168.51381,1.7265301 170.49614,2.2540064 172.43756,2.8773246 L173.72369,3.3632436 L177.33311,3.6208701 C213.51672,7.3312373 253.41733,20.592169 295.24298,49.598763 C297.85706,51.411655 300.47867,53.286057 303.1073,55.223473 L310.35287,60.724251 L312,60.724251 C301.4306,69.972336 290.96725,78.064583 280.638,85.109253 C275.47351,88.631531 270.34253,91.891891 265.24872,94.903854 C244.87341,106.9518 225.09125,115.02593 206.12621,119.99326 C196.64372,122.47691 187.36549,124.18386 178.31958,125.2225 L169.3652,125.93814 L166.49576,126.69975 C162.45969,127.55227 158.28075,128 154.00049,128 C149.7202,128 145.54124,127.55228 141.50513,126.69974 L136.8429,125.46229 L127.0557,124.30129 C63.017048,114.69164 17.431828,76.181305 4.632782,64.260056 C3.83284,63.514961 3.1609726,62.873734 2.6206741,62.349915 L1.4812393,61.226299 L0,61.226299 C0,61.226299 35.475067,28.186827 92.089218,11.667151 C99.165924,9.6022034 106.57294,7.795362 114.28227,6.3434238 C118.13694,5.617455 122.06718,4.9802127 126.0695,4.4437952 L133.50128,3.6564012 L135.56342,2.8773155 C139.44624,1.6306778 143.49272,0.76741856 147.66129,0.33042526 C149.74556,0.11192995 151.86035,1.0738186E-06 154.00049,0 z" Width="14" Height="10" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="CheckIcon"/>
							</Grid>
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" x:Name="contentPresenter" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Grid.Column="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</UserControl.Resources>
    <Grid x:Name="LayoutRoot">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="16"/>
    		<ColumnDefinition Width="16"/>
    		<ColumnDefinition Width="*"/>
    	</Grid.ColumnDefinitions>
    	<CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="showHide" Style="{StaticResource CheckBoxShowHide}"/>
    	<CheckBox HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1"  x:Name="enableDisable"/>
    	<TextBlock Grid.Column="2" Text="Object.Text" TextWrapping="Wrap" VerticalAlignment="Center" HorizontalAlignment="Right" x:Name="label"/>

    </Grid>
</UserControl>
